﻿using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebApi101.Data.Models;

namespace WebApi101.Data
{
    public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
    {
        // DbSet... 
        public DbSet<Todo> Todos { get; set; }
        public ApplicationDbContext() : base("DefaultConnection", throwIfV1Schema: false) {}

        public static ApplicationDbContext Create() { 
            return new ApplicationDbContext(); 
        }


    }
}
